package com.example.flower_shop.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * 用户收藏商品表
 *
 * @TableName sys_user_collect
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("sys_user_collect")
public class UserCollect extends BaseEntity implements Serializable {
    /**
     * 收藏id
     */
    @TableId
    private Long id;

    /**
     * 用户ID
     */
    private Long uid;

    /**
     * 商品ID
     */
    private Long productId;
}